<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>微博列表页面</h1>
<div>
    <div v-for="weibo in arr">
        <h3>{{weibo.content}}</h3>
        <img v-for="url in weibo.urlArr" :src="url" style="width: 100px;height: 100px" alt="">
    </div>
</div>
<script src="js/axios.min.js"></script>
<script src="js/vue.min.js"></script>
<script>
    let v = new Vue({
        el:"body>div",
        data:{
            arr:[]
        },
        created:function (){
            axios.get("/select").then(function (response){
                v.arr = response.data;
                for (let weibo of v.arr) {
                    weibo.urlArr=weibo.urls==""?[]:weibo.urls.split(",")
                }
            })
        }
    })
</script>
</body>
</html>